<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta charset="UTF-8">
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap.css" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap-responsive.css" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/style.css" />
        <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/jquery.sorted.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/bootstrap.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/ckform.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/common.js"></script>
        <style type="text/css">
            body {
                padding-bottom: 40px;
            }
            .sidebar-nav {
                padding: 9px 0;
            }

            @media (max-width: 980px) {
                /* Enable use of floated navbar text */
                .navbar-text.pull-right {
                    float: none;
                    padding-left: 5px;
                    padding-right: 5px;
                }
            }


        </style>
    </head>
    <body>
        <form action="{:U('Goods/edit')}" method="post" class="definewidth m20" onsubmit="return sure();">
		<input type="hidden" name="goods_id" value="{$goods.goods_id}">
            <table class="table table-bordered table-hover definewidth m10">
                <tr>
                    <td width="10%" class="tableleft">产品名称</td>
                    <td><input type="text" name="goods_name" id="goods_name" value="{$goods.goods_name}"/></td>
                </tr>
                <tr>
                    <td width="10%" class="tableleft">缩略图</td>
                    <td><input type="file" name="goods_thumb" id="goods_thumb" value="{$goods.goods_thumb}"/></td>
                </tr>
                <tr>
                    <td class="tableleft">产品价格</td>
                    <td><input type="text" name="goods_price" id="goods_price" value="{$goods.goods_price}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">优惠价格</td>
                    <td><input type="text" name="after_discount" id="after_discount" value="{$goods.after_discount}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">图片1</td>
                    <td><input type="file" name="img1" id="img1" value="{$goods.img1}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">图片2</td>
                    <td><input type="file" name="img2" id="img2" value="{$goods.img2}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">图片3</td>
                    <td><input type="file" name="img3" id="img3" value="{$goods.img3}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">图片4</td>
                    <td><input type="file" name="img4" id="img4" value="{$goods.img4}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">图片5</td>
                    <td><input type="file" name="img5" id="img5" value="{$goods.img5}"/></td>
                </tr>
				<tr>
                    <td class="tableleft">图片6</td>
                    <td><input type="file" name="img6" id="img6" value="{$goods.img6}"/></td>
                </tr>
                </tr>
                <tr>
                    <td class="tableleft"></td>
                    <td>
                        <button type="submit" class="btn btn-primary" type="button">提交</button>&nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
<script>
    $(function () {
        $('#backid').click(function () {
            window.location.href = "{:U('Goods/goodslist')}";
        });
    });
</script>